package com.sti.platform.listener;

import java.util.Arrays;
import java.util.List;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

public class FlowTaskListener implements JavaDelegate {  
    @Override  
    public void execute(DelegateExecution execution) throws Exception {  
        System.out.println("设置会签环节的人员.");  
        String[] users = (String[]) execution.getVariable("users");
		List<String> list = Arrays.asList(users);
        execution.setVariable("pers", list);  
    }  
}  
